package com.raigor.application.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.raigor.common.annotation.Excel;
import com.raigor.common.core.domain.BaseEntity;

/**
 * 插件管理对象 file_plugins
 *
 * @author xiaoshen
 * @date 2021-12-31
 */
public class FilePlugins extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 插件ID */
    private Long pluginsFileId;

    /** 序号 */
    @Excel(name = "序号")
    private Long pluginsSortId;

    /** 插件地址 */
    @Excel(name = "插件地址")
    private String pluginsFileAddress;

    /** 插件名 */
    @Excel(name = "插件名")
    private String pluginsFileName;

    /** 大小(Byte) */
    @Excel(name = "大小(Byte)")
    private Long pluginsFileSize;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date uploadTime;

    public void setPluginsFileId(Long pluginsFileId)
    {
        this.pluginsFileId = pluginsFileId;
    }

    public Long getPluginsFileId()
    {
        return pluginsFileId;
    }

    public Long getPluginsSortId()
    {
        return pluginsSortId;
    }
    public void setPluginsFileAddress(String pluginsFileAddress)
    {
        this.pluginsFileAddress = pluginsFileAddress;
    }

    public String getPluginsFileAddress()
    {
        return pluginsFileAddress;
    }
    public void setPluginsFileName(String pluginsFileName)
    {
        this.pluginsFileName = pluginsFileName;
    }

    public String getPluginsFileName()
    {
        return pluginsFileName;
    }
    public void setPluginsFileSize(Long pluginsFileSize)
    {
        this.pluginsFileSize = pluginsFileSize;
    }

    public Long getPluginsFileSize()
    {
        return pluginsFileSize;
    }
    public void setUploadTime(Date uploadTime)
    {
        this.uploadTime = uploadTime;
    }

    public Date getUploadTime()
    {
        return uploadTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pluginsFileId", getPluginsFileId())
            .append("pluginsSortId", getPluginsSortId())
            .append("pluginsFileAddress", getPluginsFileAddress())
            .append("pluginsFileName", getPluginsFileName())
            .append("pluginsFileSize", getPluginsFileSize())
            .append("uploadTime", getUploadTime())
            .toString();
    }
}
